package ejb;

import javax.ejb.Stateful;
import javax.ejb.Stateless;

//@Stateless
@Stateful
public class CalculadoraConEstado implements CalculadoraConEstadoRemote, CalculadoraConEstadoLocal {
    private double op1,op2;

    public double getOp1() {
        return op1;
    }

    public void setOp1(double op1) {
        this.op1 = op1;
    }

    public double getOp2() {
        return op2;
    }

    public void setOp2(double op2) {
        this.op2 = op2;
    }

    @Override
    public double suma() {
        return op1+op2;
    }
    
    
}
